package com.bbs.toutiao.service.client;


import com.bbs.toutiao.vo.article.ArticlePageRequestVo;
import com.bbs.toutiao.vo.article.ArticleVo;
import com.bbs.toutiao.vo.client.UserVo;
import com.bbs.toutiao.vo.comm.PageVo;

import java.util.List;

public interface ArticleEditService {

    //新增文章
    int addArticle(ArticleVo article);

    //客户端动态查询文章
    PageVo<ArticleVo> articleSelectQuery(ArticlePageRequestVo requestVo);

    //指定用户id分页查询文章
    PageVo<ArticleVo> articleSelectQueryByUserId(ArticlePageRequestVo requestVo);

    //删除文章
    int deleteArticle(int articleId,int userId);

    //分页搜索用户
    PageVo<ArticleVo> searchUser(Integer page, Integer size, String userName,Integer userId );

}
